import allure

from api.auth import AuthAPI


class TestCompanyBaseinfo:

    # 前置处理
    def setup_method(self):
        self.auth_api = AuthAPI()

    @allure.title("银行卡三要素验证接口")
    def test01_error(self):
        data = {
            "userCardName": "苏建家",
            "idCardNo": "350582198708180536",
            "bankCardNo": "6223092900013318805",
            "mercode": "831663552110058",
            "serviceCode": "agent"
        }
        res = self.auth_api.authCertification(data=data)
        assert 500 == res.status_code
